#include<iostream>
#include<ctime>
using namespace std;

enum log_num{

    DEBUG,
    NOTICE ,
    WARNING ,
    ERROR 
};

string logMassage[]={
    "debug",
    "notice",
    "warning",
    "error"
};

void log(int num,const string& massage)
{
    time_t curtime=time(nullptr);   
    cout<<asctime(localtime(&curtime))<<logMassage[num]<<" | "<<massage<<" | "<<endl;
}